//---------------------------------------------------------------------------

#ifndef UPreviewFormH
#define UPreviewFormH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <ActnCtrls.hpp>
#include <ActnMan.hpp>
#include <ActnMenus.hpp>
#include <ToolWin.hpp>
#include <Db.hpp>
#include <ActnList.hpp>
#include <ComCtrls.hpp>
#include <StdActns.hpp>
#include <ImgList.hpp>
#include <Dialogs.hpp>
#include <ExtDlgs.hpp>
#include "Dll.h"
//---------------------------------------------------------------------------
class TPreviewForm : public TForm
{
__published:	// IDE-managed Components
    TScrollBox *ScrollBox;
    TImage *Image;
    TToolBar *ToolBar1;
    TToolButton *ToolButton1;
    TToolButton *ToolButton2;
    TToolButton *ToolButton3;
    TToolButton *ToolButton4;
    TToolButton *ToolButton5;
    TActionList *ActionList;
    TAction *ZoomInAction;
    TAction *ZoomOutAction;
    TAction *PrintAction;
    TImageList *ImageList;
    TToolButton *ToolButton6;
    TToolButton *ToolButton7;
    TAction *ScanAction;
    TAction *SaveImageAction;
    TSavePictureDialog *SaveDialog;
    void __fastcall ZoomInActionExecute(TObject *Sender);
    void __fastcall ZoomOutActionExecute(TObject *Sender);
    void __fastcall ZoomInActionUpdate(TObject *Sender);
    void __fastcall ZoomOutActionUpdate(TObject *Sender);
    void __fastcall ScanActionExecute(TObject *Sender);
    void __fastcall ScanActionUpdate(TObject *Sender);
    void __fastcall ActionUpdate(TObject *Sender);
    void __fastcall PrintActionExecute(TObject *Sender);
    void __fastcall SaveImageActionExecute(TObject *Sender);
private:
    int m_Scale;
    int m_Width;
    int m_Height;
    TDll* m_EzTwDll;
    bool __fastcall GetSaveAllowed(); 	// User declarations
public:		// User declarations
    __fastcall TPreviewForm(TComponent* Owner);

};
//---------------------------------------------------------------------------
extern PACKAGE TPreviewForm *PreviewForm;
//---------------------------------------------------------------------------
#endif
